﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using appCode;

public partial class Pages_HomePage_DetailCompetion : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Competition c = new Competition();
        ManagerDA dao = new ManagerDA();            
        string id = Request.QueryString["PID"];
        c = dao.getDetailCompetition(id);
        Label1.Text = c.Description;
        Image1.ImageUrl = "~/Images/" + c.Img;
    }
}